<template>
     <div class="back" @click="go" ><img src="../../static/images/back.png" /></div>
</template>

<script>
export default {
	name: 'Back',
	methods:{
		go:function(){
			if(!this.isDefault)
				  this.$router.push({name:this.name});
			else
			history.go(-1);
		}
	} , props:{
      isDefault:{//是否默认
		  type: Boolean
          
      },name:{//跳转的路由名称
          type: String,
         // required: true
      }
  }
}
</script>
<style scoped>
.back{
	position:fixed;
	right:10px;
	bottom:5px;
	z-index:9999;
	cursor:pointer;
	opacity:0.6;
	animation:back 1s ease-in-out infinite;
}
</style>

